package com.example.eldersystem.operatedata.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Getter
@Setter
public class Employee {
    private int id;
    private String userName;
    private String gender;
    private String phone;
    private String idCard;
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date birthday;
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date hireDate;
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date resignDate;
    private String imgsetDir;
    private String profilePhoto;
    private String description;
}
